﻿using System.Collections.Generic;
using FFLTask.GLB.Global.Enum;
using FFLTask.SRV.ViewModel.Account;
using FFLTask.SRV.ViewModel.Project;
using FFLTask.SRV.ViewModel.Shared;
using System;
using FFLTask.SRV.ViewModel.Validations;
using System.ComponentModel;
using FFLTask.SRV.ViewModel.Task.Content;

namespace FFLTask.SRV.ViewModel.Task
{
    public class EditModel
    {
        public int Id { get; set; }

        public _NodeTypeModel _NodeType { get; set; }

        public UserModel Publisher { get; set; }
        public UserModel Owner { get; set; }
        public UserModel Accepter { get; set; }

        public _PublishModel Publish { get; set; }
        public _AssignOwnModel Assign { get; set; }
        public _ProgressModel Progress { get; set; }
        public _AcceptModel Accept { get; set; }

        public StatusModel CurrentStatus { get; set; }
        public UserModel CurrentUser { get; set; }

        public int? AddresseeId { get; set; }
        public string Comment { get; set; }

        public RedirectPage Redirect { get; set; }
        public int? PreviousTaskId { get; set; }
        public int? NextTaskId { get; set; }

        public bool CanAutoCompleteParent { get; set; }
        public bool AutoCompleteParent { get; set; }
        public bool CanAutoAccepterParent { get; set; }
        public bool AutoAcceptParent { get; set; }
    }

    #region //TODO: used later: http://task.zyfei.net/Task/Edit/2423

    public class _CommmentModel
    {
        public string Comment { get; set; }
        public int? AddresseeId { get; set; }
    }

    #endregion

}
